<template>
	<view>
		<view class="xm-flex-r xm-padding-20r xm-align-content-center" style="">

			<input type="text" value="" class="xm-fontsize-25" v-model="typeSS" maxlength="5"
				placeholder-class="xm-fontsize-25" placeholder-style="color:#999999;"
				placeholder="再此输入搜索内容 ( 输入相应标签搜索 )"
				style="flex: 1; border: 6rpx #4CD964 solid;border-radius: 40rpx 0rpx 0rpx 40rpx;height: 60rpx;padding-left: 20rpx;" />
			<view class="xm-fontsize-25" @click="nswstoptype=5"
				style="border: #4CD964 6rpx solid;margin-left: 10rpx;width: 85rpx;text-align: center;height: 60rpx;line-height: 60rpx;border-radius:  0rpx 40rpx 40rpx 0rpx ;">
				搜索
			</view>
		</view>

		<view class="xm-flex-c">

			<swiper :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000"
				style="height: 300rpx;margin-top: 30rpx;">
				<swiper-item v-for="(item,value) in swiperimg">
					<view class="swiper-item">
						<view class=""
							style="width: 96%;height: 300rpx;background-color: #007AFF;border-radius: 20rpx;margin: auto;">
							<image :src="'http://120.76.135.239:9439/xmdata'+item"
								style="width: 100%;height: 100%;box-sizing: border-box;border-radius: 20rpx;" mode="">
							</image>
						</view>
					</view>
				</swiper-item>

			</swiper>

			<view class="xm-flex-r xm-justify-between xm-fontsize-30 xm-black xm-padding-30r">

				<view class="xm-fontsize-30">
					记忆卡片
				</view>
				<view class="xm-flex-r" style="" @click="onTimeType">

					<image v-show="timeType" src="../../static/images/icon/down.png"
						style="width: 40rpx;margin-right: 1rpx;" mode="widthFix"></image>
					<image v-show="!timeType" src="../../static/images/icon/up.png"
						style="width: 40rpx;margin-right: 1rpx;" mode="widthFix"></image>
					<view class="xm-fontsize-25" style="line-height: 38rpx;">
						时间
					</view>
				</view>

			</view>

			<view class="xm-grid xm-padding-30r"
				style="padding-top: initial;grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr 1fr;text-align: center;box-sizing: border-box;">
				<view :class="[nswstoptype==value?'select-newstop xm-fontsize-25':'xm-fontsize-25']"
					:style="value==5?'grid-column-start: 6;grid-column-end: 8;':''"
					style="width: 100%;height: 41rpx;line-height: 41rpx;" v-for="(item,value) in newstop" :key="value"
					@click="setnewstop(value)">
					{{item}}
				</view>

			</view>

			<swiper :indicator-dots="false" :autoplay="false" :current="nswstoptype" @change="typeList"
				style="height: 1000rpx;">

				<swiper-item>
					<view class="swiper-item">
						<view class="xm-padding-30r" style="height: 900rpx;overflow-y: scroll;">

							<!-- 列表 -->
							<view class="xm-flex-r xm-padding-20r xm-jb-200"
								style="width: 100%;height: auto;background-color: #d3d3d3;margin-bottom: 20rpx;border-radius: 20rpx;"
								v-for="(data,index) in list" :key="index"
								@click="$api.gotoType('to','../framgmentdetalis/framgmentdetalis?id='+data.fg_id+'&good='+data.goodnum)">
								<view class="" style="width: 150rpx;height: auto;margin-right: 20rpx;">
									<image :src="data.top_icon" style="width: 100%;height:157rpx;border-radius: 20rpx;"
										mode="aspectFill"></image>
									<view class="xm-fontsize-25 xm-color-200" style="">

										{{data.user_name}}

									</view>
								</view>
								<view class="xm-flex-c xm-justify-around" style="flex: 1;">
									<view class="xm-flex-r xm-justify-between xm-align-content-center" style="">
										<view class="xm-fontsize-20 xm-black"
											style="width: 200rpx;margin-bottom: 20rpx;line-height: 35rpx;color: #42494c;">
											<!-- 标题 -->
											{{data.title}}
										</view>
										<view class="xm-fontsize-15" style="color: #6a757a;">
											<!-- 2021 02 23 -->
											{{data.date}}
										</view>
									</view>

									<!-- 详情 -->
									<view class="xm-fontsize-15"
										style="margin-bottom: 20rpx;line-height: 35rpx;color: #6a757a;">
										<!-- xxxxxxxxxxxxxxxxxxxxxx -->
										{{data.hint}}
									</view>

									<view class="xm-flex-rr">

										<!-- <view class="xm-flex-r" style="margin-left: 10rpx;align-items: center;">
												<text class="xm-fontsize-15" style="margin-left: 10rpx; color: #6a757a;margin-right: 15rpx;">200</text>
                     							<image src="../../static/images/icon/select_token.png" mode="widthFix" style="width: 40rpx;"></image>
                     						</view> -->

										<view class="xm-flex-r" style="margin-left: 10rpx;align-items: center;"
											@click.stop="setGood(data,index)">
											<text class="xm-fontsize-15"
												style="margin-left: 10rpx; color: #6a757a;margin-right: 15rpx;">
												<!-- 200 -->
												<!-- {{data.good}} -->
												<!-- 	{{getGoods}} -->
												{{data.goodnum}}
											</text>
											<home-goods :goodstype="data.goodstype"></home-goods>
											<!-- <image v-show="data.goodstype == 0" src="/static/images/icon/good.png"
												mode="widthFix" style="width: 40rpx;"></image>
											<image v-show="data.goodstype == 1"
												src="/static/images/icon/select_good.png" mode="widthFix"
												style="width: 40rpx;"></image> -->
										</view>

									</view>

								</view>
							</view>
							<view class="">
								没有更多内容了哦！
							</view>
						</view>
					</view>
				</swiper-item>

				<swiper-item>
					<view class="swiper-item">
						<view class="xm-padding-30r" style="height: 900rpx;overflow-y: scroll;">

							<!-- 列表 -->
							<view class="xm-flex-r xm-padding-20r xm-jb-200"
								style="width: 100%;height: auto;background-color: #d3d3d3;margin-bottom: 20rpx;border-radius: 20rpx;"
								v-for="(data,index) in list" :key="index" v-if="data.sex==0"
								@click="$api.gotoType('to','../framgmentdetalis/framgmentdetalis?id='+data.fg_id+'&good='+data.goodnum)">
								<view class="" style="width: 150rpx;height: auto;margin-right: 20rpx;">
									<image :src="data.top_icon" style="width: 100%;height:157rpx;border-radius: 20rpx;"
										mode="aspectFill"></image>
									<view class="xm-fontsize-25 xm-color-200" style="">

										{{data.user_name}}

									</view>
								</view>
								<view class="xm-flex-c xm-justify-around" style="flex: 1;">
									<view class="xm-flex-r xm-justify-between xm-align-content-center" style="">
										<view class="xm-fontsize-20 xm-black"
											style="width: 200rpx;margin-bottom: 20rpx;line-height: 35rpx;color: #42494c;">
											<!-- 标题 -->
											{{data.title}}
										</view>
										<view class="xm-fontsize-15" style="color: #6a757a;">
											<!-- 2021 02 23 -->
											{{data.date}}
										</view>
									</view>

									<!-- 详情 -->
									<view class="xm-fontsize-15"
										style="margin-bottom: 20rpx;line-height: 35rpx;color: #6a757a;">
										<!-- xxxxxxxxxxxxxxxxxxxxxx -->
										{{data.hint}}
									</view>

									<view class="xm-flex-rr">

										<!-- <view class="xm-flex-r" style="margin-left: 10rpx;align-items: center;">
												<text class="xm-fontsize-15" style="margin-left: 10rpx; color: #6a757a;margin-right: 15rpx;">200</text>
				     							<image src="../../static/images/icon/select_token.png" mode="widthFix" style="width: 40rpx;"></image>
				     						</view> -->

										<view class="xm-flex-r" style="margin-left: 10rpx;align-items: center;"
											@click.stop="setGood(data,index)">
											<text class="xm-fontsize-15"
												style="margin-left: 10rpx; color: #6a757a;margin-right: 15rpx;">
												<!-- 200 -->
												{{data.goodnum}}
											</text>
											<home-goods :goodstype="data.goodstype"></home-goods>
											<!-- <image v-show="data.goodstype == 0" src="/static/images/icon/good.png"
												mode="widthFix" style="width: 40rpx;"></image>
											<image v-show="data.goodstype == 1"
												src="/static/images/icon/select_good.png" mode="widthFix"
												style="width: 40rpx;"></image>
										 -->
										</view>

									</view>

								</view>
							</view>
							<view class="">
								没有更多内容了哦！
							</view>
						</view>
					</view>
				</swiper-item>

				<!-- 女 -->
				<swiper-item>
					<view class="swiper-item">
						<view class="xm-padding-30r" style="height: 900rpx;overflow-y: scroll;">

							<!-- 列表 -->
							<view class="xm-flex-r xm-padding-20r xm-jb-200"
								style="width: 100%;height: auto;background-color: #d3d3d3;margin-bottom: 20rpx;border-radius: 20rpx;"
								v-for="(data,index) in list" :key="index" v-if="data.sex==1"
								@click="$api.gotoType('to','../framgmentdetalis/framgmentdetalis?id='+data.fg_id+'&good='+data.goodnum)">
								<view class="" style="width: 150rpx;height: auto;margin-right: 20rpx;">
									<image :src="data.top_icon" style="width: 100%;height:157rpx;border-radius: 20rpx;"
										mode="aspectFill"></image>
									<view class="xm-fontsize-25 xm-color-200" style="">

										{{data.user_name}}

									</view>
								</view>
								<view class="xm-flex-c xm-justify-around" style="flex: 1;">
									<view class="xm-flex-r xm-justify-between xm-align-content-center" style="">
										<view class="xm-fontsize-20 xm-black"
											style="width: 200rpx;margin-bottom: 20rpx;line-height: 35rpx;color: #42494c;">
											<!-- 标题 -->
											{{data.title}}
										</view>
										<view class="xm-fontsize-15" style="color: #6a757a;">
											<!-- 2021 02 23 -->
											{{data.date}}
										</view>
									</view>

									<!-- 详情 -->
									<view class="xm-fontsize-15"
										style="margin-bottom: 20rpx;line-height: 35rpx;color: #6a757a;">
										<!-- xxxxxxxxxxxxxxxxxxxxxx -->
										{{data.hint}}
									</view>

									<view class="xm-flex-rr">

										<!-- <view class="xm-flex-r" style="margin-left: 10rpx;align-items: center;">
												<text class="xm-fontsize-15" style="margin-left: 10rpx; color: #6a757a;margin-right: 15rpx;">200</text>
				     							<image src="../../static/images/icon/select_token.png" mode="widthFix" style="width: 40rpx;"></image>
				     						</view> -->

										<view class="xm-flex-r" style="margin-left: 10rpx;align-items: center;"
											@click.stop="setGood(data,index)">
											<text class="xm-fontsize-15"
												style="margin-left: 10rpx; color: #6a757a;margin-right: 15rpx;">
												<!-- 200 -->
												{{data.goodnum}}
											</text>
											<home-goods :goodstype="data.goodstype"></home-goods>
											<!-- <image v-show="data.goodstype == 0" src="/static/images/icon/good.png"
												mode="widthFix" style="width: 40rpx;"></image>
											<image v-show="data.goodstype == 1"
												src="/static/images/icon/select_good.png" mode="widthFix"
												style="width: 40rpx;"></image> -->
										</view>

									</view>

								</view>
							</view>
							<view class="">
								没有更多内容了哦！
							</view>
						</view>
					</view>
				</swiper-item>
				<!-- 今日 -->
				<swiper-item>
					<view class="swiper-item">
						<view class="xm-padding-30r" style="height: 900rpx;overflow-y: scroll;">

							<!-- 列表 -->
							<view class="xm-flex-r xm-padding-20r xm-jb-200"
								style="width: 100%;height: auto;background-color: #d3d3d3;margin-bottom: 20rpx;border-radius: 20rpx;"
								v-for="(data,index) in list" :key="index" v-if="data.label=='笔记'"
								@click="$api.gotoType('to','../framgmentdetalis/framgmentdetalis?id='+data.fg_id+'&good='+data.goodnum)">
								<view class="" style="width: 150rpx;height: auto;margin-right: 20rpx;">
									<image :src="data.top_icon" style="width: 100%;height:157rpx;border-radius: 20rpx;"
										mode="aspectFill"></image>
									<view class="xm-fontsize-25 xm-color-200" style="">

										{{data.user_name}}

									</view>
								</view>
								<view class="xm-flex-c xm-justify-around" style="flex: 1;">
									<view class="xm-flex-r xm-justify-between xm-align-content-center" style="">
										<view class="xm-fontsize-20 xm-black"
											style="width: 200rpx;margin-bottom: 20rpx;line-height: 35rpx;color: #42494c;">
											<!-- 标题 -->
											{{data.title}}
										</view>
										<view class="xm-fontsize-15" style="color: #6a757a;">
											<!-- 2021 02 23 -->
											{{data.date}}
										</view>
									</view>

									<!-- 详情 -->
									<view class="xm-fontsize-15"
										style="margin-bottom: 20rpx;line-height: 35rpx;color: #6a757a;">
										<!-- xxxxxxxxxxxxxxxxxxxxxx -->
										{{data.hint}}
									</view>

									<view class="xm-flex-rr">

										<!-- <view class="xm-flex-r" style="margin-left: 10rpx;align-items: center;">
												<text class="xm-fontsize-15" style="margin-left: 10rpx; color: #6a757a;margin-right: 15rpx;">200</text>
				     							<image src="../../static/images/icon/select_token.png" mode="widthFix" style="width: 40rpx;"></image>
				     						</view> -->

										<view class="xm-flex-r" style="margin-left: 10rpx;align-items: center;"
											@click.stop="setGood(data,index)">
											<text class="xm-fontsize-15"
												style="margin-left: 10rpx; color: #6a757a;margin-right: 15rpx;">
												<!-- 200 -->
												{{data.goodnum}}
											</text>
											<home-goods :goodstype="data.goodstype"></home-goods>
											<!-- <image v-show="data.goodstype == 0" src="/static/images/icon/good.png"
												mode="widthFix" style="width: 40rpx;"></image>
											<image v-show="data.goodstype == 1"
												src="/static/images/icon/select_good.png" mode="widthFix"
												style="width: 40rpx;"></image>
										</view> -->
</view>
									</view>

								</view>
							</view>
							<view class="">
								没有更多内容了哦！
							</view>
						</view>
					</view>
				</swiper-item>
				<!-- 今日 -->
				<swiper-item>
					<view class="swiper-item">
						<view class="xm-padding-30r" style="height: 900rpx;overflow-y: scroll;">

							<!-- 列表 -->
							<view class="xm-flex-r xm-padding-20r xm-jb-200"
								style="width: 100%;height: auto;background-color: #d3d3d3;margin-bottom: 20rpx;border-radius: 20rpx;"
								v-for="(data,index) in list" :key="index" v-if="data.label=='日记'"
								@click="$api.gotoType('to','../framgmentdetalis/framgmentdetalis?id='+data.fg_id+'&good='+data.goodnum)">
								<view class="" style="width: 150rpx;height: auto;margin-right: 20rpx;">
									<image :src="data.top_icon" style="width: 100%;height:157rpx;border-radius: 20rpx;"
										mode="aspectFill"></image>
									<view class="xm-fontsize-25 xm-color-200" style="">

										{{data.user_name}}

									</view>
								</view>
								<view class="xm-flex-c xm-justify-around" style="flex: 1;">
									<view class="xm-flex-r xm-justify-between xm-align-content-center" style="">
										<view class="xm-fontsize-20 xm-black"
											style="width: 200rpx;margin-bottom: 20rpx;line-height: 35rpx;color: #42494c;">
											<!-- 标题 -->
											{{data.title}}
										</view>
										<view class="xm-fontsize-15" style="color: #6a757a;">
											<!-- 2021 02 23 -->
											{{data.date}}
										</view>
									</view>

									<!-- 详情 -->
									<view class="xm-fontsize-15"
										style="margin-bottom: 20rpx;line-height: 35rpx;color: #6a757a;">
										<!-- xxxxxxxxxxxxxxxxxxxxxx -->
										{{data.hint}}
									</view>

									<view class="xm-flex-rr">

										<!-- <view class="xm-flex-r" style="margin-left: 10rpx;align-items: center;">
												<text class="xm-fontsize-15" style="margin-left: 10rpx; color: #6a757a;margin-right: 15rpx;">200</text>
				     							<image src="../../static/images/icon/select_token.png" mode="widthFix" style="width: 40rpx;"></image>
				     						</view> -->

										<view class="xm-flex-r" style="margin-left: 10rpx;align-items: center;"
											@click.stop="setGood(data,index)">
											<text class="xm-fontsize-15"
												style="margin-left: 10rpx; color: #6a757a;margin-right: 15rpx;">
												<!-- 200 -->
												{{data.goodnum}}
											</text>
											<home-goods :goodstype="data.goodstype"></home-goods>
											<!-- <image v-show="data.goodstype == 0" src="/static/images/icon/good.png"
												mode="widthFix" style="width: 40rpx;"></image>
											<image v-show="data.goodstype == 1"
												src="/static/images/icon/select_good.png" mode="widthFix"
												style="width: 40rpx;"></image> -->
										</view>

									</view>

								</view>
							</view>
							<view class="">
								没有更多内容了哦！
							</view>
						</view>
					</view>
				</swiper-item>


				<!-- 搜索 -->
				<swiper-item>
					<view class="swiper-item">
						<view class="xm-padding-30r" style="height: 900rpx;overflow-y: scroll;">
							
							<!-- 列表 -->
							<view class="xm-flex-r xm-padding-20r xm-jb-200"
								style="width: 100%;height: auto;background-color: #d3d3d3;margin-bottom: 20rpx;border-radius: 20rpx;"
								v-for="(data,index) in list" :key="index" v-if="data.label==typeSS"
								@click="$api.gotoType('to','../framgmentdetalis/framgmentdetalis?id='+data.fg_id+'&good='+data.goodnum)">
								
								<view class="" style="width: 150rpx;height: auto;margin-right: 20rpx;">
									<image :src="data.top_icon" style="width: 100%;height:157rpx;border-radius: 20rpx;"
										mode="aspectFill"></image>
									<view class="xm-fontsize-25 xm-color-200" style="">

										{{data.user_name}}

									</view>
								</view>
								<view class="xm-flex-c xm-justify-around" style="flex: 1;">
									<view class="xm-flex-r xm-justify-between xm-align-content-center" style="">
										<view class="xm-fontsize-20 xm-black"
											style="width: 200rpx;margin-bottom: 20rpx;line-height: 35rpx;color: #42494c;">
											<!-- 标题 -->
											{{data.title}}
										</view>
										<view class="xm-fontsize-15" style="color: #6a757a;">
											<!-- 2021 02 23 -->
											{{data.date}}
										</view>
									</view>

									<!-- 详情 -->
									<view class="xm-fontsize-15"
										style="margin-bottom: 20rpx;line-height: 35rpx;color: #6a757a;">
										<!-- xxxxxxxxxxxxxxxxxxxxxx -->
										{{data.hint}}
									</view>

									<view class="xm-flex-rr">

										<!-- <view class="xm-flex-r" style="margin-left: 10rpx;align-items: center;">
												<text class="xm-fontsize-15" style="margin-left: 10rpx; color: #6a757a;margin-right: 15rpx;">200</text>
				     							<image src="../../static/images/icon/select_token.png" mode="widthFix" style="width: 40rpx;"></image>
				     						</view> -->

										<view class="xm-flex-r" style="margin-left: 10rpx;align-items: center;"
											@click.stop="setGood(data,index)">
											<text class="xm-fontsize-15"
												style="margin-left: 10rpx; color: #6a757a;margin-right: 15rpx;">
												<!-- 200 -->
												{{data.goodnum}}
											</text>
											<home-goods :goodstype="data.goodstype"></home-goods>
											<!-- <image v-show="data.goodstype == 0" src="/static/images/icon/good.png"
												mode="widthFix" style="width: 40rpx;"></image>
											<image v-show="data.goodstype == 1"
												src="/static/images/icon/select_good.png" mode="widthFix"
												style="width: 40rpx;"></image> -->
										</view>

									</view>

								</view>
								
							</view>
							<view class="">
								（ 请在搜索框输入精确的标题名称 ）
								没有更多内容了哦！
							</view>
							
						</view>
					</view>
				</swiper-item>

			</swiper>

		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				newstop: ["全部", "男", "女", "笔记", "日记", "搜索呈现"],
				nswstoptype: 0,
				swiperimg: [],
				id: undefined,
				userlist: undefined,
				list: undefined,
				typeSS: undefined,
				listItem: {
					body: null,
					date: null,
					fg_id: null,
					good: null,
					hint: null,
					label: null,
					title: null,
					typeopen: null,
					user_id: null,
					top_icon: null,
					user_name: null
				},
				timeType: true
			}
		},
		computed: {
			setGoods() {

				return aaa;
			}
		},
		onShow() {
			var that = this
			this.getSwiper()
			this.userList()
			uni.getStorage({
				key: "token",
				success: data => {
					console.log(data);
					this.id = data.data
					this.getList()

				},
				fail(err) {
					this.id = undefined
					console.log(err);
					that.getList()
				}

			})

		},
		computed: {
			// getGoods() {
			// 	return 1;
			// }
		},
		methods: {

			// 下拉刷新
			onPullDownRefresh() {
				var that = this
				console.log('refresh');
				setTimeout(function() {
					that.getList()
					uni.stopPullDownRefresh();
				}, 1000);

			},
			userList() {
				this.$http(this.$url.user.list, "post", {
						'content-type': 'application/json'
					})
					.then(res => {
						if (res.code == 0) {
							console.log(res);
							this.userlist = res.list
							console.log(this.userlist);
						}

					})
			},
			getSwiper() {
				var that = this
				this.$http(this.$url.user.getSwiper, "post", {
					'content-type': 'application/json'
				}).then(res => {
					this.swiperimg = res.list
					console.log(this.list);
				})
			},
			onTimeType() {
				this.list.reverse()
				this.timeType = !this.timeType
			},
			setnewstop(data) {
				this.nswstoptype = data
			},
			typeList(data) {
				this.nswstoptype = data.detail.current
			},
			getList() {
				var that = this
				this.$http(this.$url.fragment.list, "post", {
					'content-type': 'application/json'
				}).then(res => {
					console.log(res);
					var arr = []

					res.list.forEach(item => {
						if (item.typeopen == 1) {
							console.log("已公开的");
							if (this.userlist.length > 0) {
								this.userlist.forEach(data => {
									if (data.user_id == item.user_id) {
										// if(item.good!=null){
										// let arrnum = item.good.split(",")
										// console.log(arrnum);
										// let num = arrnum.length
										// console.log(num);
										// console.log(num);
										let listItem = {
											body: item.body,
											date: item.date,
											fg_id: item.fg_id,
											good: item.good,
											hint: item.hint,
											label: item.label,
											title: item.title,
											typeopen: item.typeopen,
											user_id: item.user_id,
											top_icon: data.top_icon,
											user_name: data.user_name,
											sex: data.sex,
											goodnum: 0,
											goodstype: 0
										}

										arr.push(listItem)
										console.log(listItem);
									}
								})
							} else {
								that.$api.msg("请检查网络，或者下拉刷新页面。")
							}
						}
					})

					this.list = arr
					this.setGoodss();
					console.log(this.list);
				}).catch(err => {
					// this.$api.msg("网路异常或无网络连接")
					uni.stopPullDownRefresh();
				})
			},
			setGoodss() {
				var that = this
				var arrr = []
				this.list.forEach(item => {
					// if(item.good!= null){
					let arr = item.good.split(",")
					let goodstype = 0
					if (arr.length >= 1) {
						arr.forEach(data => {
							if (data == that.id) {
								goodstype = 1
								item.goodstype = goodstype
							}
						})
						item.goodnum = arr.length
					}else{
						item.goodnum = 1
						item.goodstype = 0
					}
					
					arrr.push(item)
					// }

				})
				console.log(arrr);
				this.list = arrr
			},
			
			setGood(data, index) {
				var that = this
				console.log(data);
				console.log(that.id);
				// var arr = data
				// arr.good++
				this.$http(this.$url.fragment.setGoods,
					"post", {
						user_id: that.id,
						fg_id: data.fg_id
					}, {
						'content-type': 'application/json'
					}).then(res => {
					console.log(res);
					var arr = res.data.good.split(",")
					that.list[index].goodstype = 0
					arr.forEach(item => {
						console.log(item);
						if (item == that.id) {
							that.list[index].goodnum++
							that.list[index].goodstype = 1
						}
					})
					if (that.list[index].goodstype == 0) {
						that.list[index].goodnum--
					}
					// console.log(arr);
					// that.setGoodss()
					// this.list[index].good
					// console.log(th);
				})
			}
		}
	}
</script>

<style>
	.select-newstop {
		border-radius: 20rpx;
		border: 1rpx #007AFF solid;
	}
</style>
